package com.zhijian.demo.mapper;

import com.zhijian.demo.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * TODO
 *
 * @author chenzhijian
 * @date 2023/10/17
 */
@Repository
public interface UserMapper {

    int addUser(User user);

    int deleteUserByUserName(String username);

    int updateUserByUsername(String oldUsername, User newUser);

    List<User> selectUsers();
}
